package cn.zyq.baking.mapper;

import cn.zyq.baking.pojo.entity.Comment;
import cn.zyq.baking.pojo.vo.CommentVO;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface CommentMapper {
    int insert(Comment comment);

    /**根据文章id找评论对象*/
    List<CommentVO> listByContentId(Long id);

    /**根据文章id删除评论*/
    int deleteByContentId(Long id);
}
